import request from '@/utils/request'

// 查询设备出入场列表
export function listDeviceInOut(query) {
  return request({
    url: '/business/deviceInOut/list',
    method: 'get',
    params: query
  })
}

// 查询设备出入场详细
export function getDeviceInOut(id) {
  return request({
    url: '/business/deviceInOut/' + id,
    method: 'get'
  })
}

// 新增设备出入场
export function addDeviceInOut(data) {
  return request({
    url: '/business/deviceInOut',
    method: 'post',
    data: data
  })
}

// 修改设备出入场
export function updateDeviceInOut(data) {
  return request({
    url: '/business/deviceInOut',
    method: 'put',
    data: data
  })
}

// 删除设备出入场
export function delDeviceInOut(id) {
  return request({
    url: '/business/deviceInOut/' + id,
    method: 'delete'
  })
}
